import { combineReducers, legacy_createStore as createStore,applyMiddleware} from "redux";
import thunk from "redux-thunk";
import { composeWithDevTools } from "redux-devtools-extension";
import {countReducer,nameReducer} from './action';

const reducer = combineReducers({countReducer,nameReducer});

const store = createStore(reducer,composeWithDevTools(applyMiddleware(thunk)));

export default store;